package java8_31;

public class Handset {
    private String brand;
    private String type;

    public Handset(String brand, String type) {
        this.brand = brand;
        this.type = type;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
    public void sendInfo(){
        System.out.println(type+"可以发信息");
    }
    public void call(){
        System.out.println(type+"可以打电话");
    }
    public void info(){
        System.out.println(type+"可以收信息");
    }
}
